package com.study.创造型模式.工厂模式.抽象工厂模式.生产者;

public class BJFactory implements AbsFactory{
    @Override
    public Pizza createPizza(String orderType) {
        Pizza pizza = null;
        if (orderType.equals("cheese")){
                pizza = new BJCheesePizza();
            }else if (orderType.equals("pepper")) {
                pizza = new BJPepperPizza();
            }
        return pizza;
    }
}
